import java.util.LinkedList;
import java.util.List;
import java.util.Queue;

public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root =  binaryTree.createTree();
        System.out.println("叶子节点个数："+ binaryTree.getLeafNodeCount(root));
        //System.out.println("叶子节点个数："+ binaryTree.getLeafNodeCount(root));
        System.out.println("树的高度："+ binaryTree.getHeight(root));

        Queue<Integer> queue = new LinkedList<>();

        List<List<Integer>> list = binaryTree.levelOrder2(root);


    }




}
